export const rules = {
  username: {
    rules: [
      {
        required: true,
        errorMessage: '请输入账号',
      },
    ],
  },
  phone: {
    rules: [
      {
        required: true,
        errorMessage: '请输入手机号码',
      },
      {
        pattern: /^1[3-9]\d{9}$/,
        errorMessage: '手机号码格式不正确',
      },
    ],
  },
  password: {
    rules: [
      {
        required: true,
        errorMessage: '请输入密码',
      },
    ],
  },
  code: {
    rules: [
      {
        required: true,
        errorMessage: '请输入图形验证码',
      },
    ],
  },
}
